package com.ncucoder.client.mapper;

import com.ncucoder.client.model.Goods;
import org.springframework.stereotype.Component;

/**
 *
 * @author <a href="https://www.ncucoder.com">hsowan</a>
 * @since 2019-01-19 18:04
 */
@Component
public interface GoodsMapper {

    /**
     *
     * @param id
     * @return
     */
    Goods getById(Long id);

    /**
     *
     * @param goods
     * @return
     */
    int save(Goods goods);

    /**
     *
     * @param goods
     * @return
     */
    int updateById(Goods goods);
}
